<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width,initial-scale=1.0,minimum-scale=1.0,maximum-scale=1.0" />
    <title>{if isset($SEO['title']) && !empty($SEO['title'])}{$SEO['title']}{/if}{$SEO['site_title']}</title>
    <meta name="keywords" content="{$SEO['keyword']}">
    <meta name="description" content="{$SEO['description']}">
    <script src="/statics/fals/js/jquery.js"></script>
    <script src="/statics/fals/js/rem.js"></script>
    <link rel="stylesheet" href="/statics/fals/styles/khal_list.css" />
    <link rel="stylesheet" href="/statics/fals/styles/base.css" />
  </head>
  <body>
    <div class="khal_container">
      {pc:get sql="select domain from dgg_site where siteid=1" num="1" dbsource="zhichanpc"}
      {php $home = $data?$data[0]['domain'].'uploadfile/':'';unset($data);}
      {/pc}
      <div class="khal_title">
        <a href="/"><img src="https://cdn.shupian.cn/sp-pt/wap/9uclk0zujeg0000.png" alt="" class="back" /></a>
        客户案例列表
      </div>
      <div class="khal_tag">
        {pc:content action="category" catid="33" num="3" siteid="$siteid" order="listorder ASC"}
        {loop $data $v}
        <a href="{$v[url]}" class="tag  {if $v[catid]==$catid} active {/if}">{$v['catname']}</a>
        {/loop}
        {/pc}
      </div>
      <section class="list">
        {php $cat_id = dr_cat_value($catid,'main_catid');}
        {pc:get sql="select  a.url,a.title,b.title as name,b.tags, c.filepath as thumb,d.filepath as portrait from dgg_cases a LEFT JOIN dgg_experts b ON a.expert=b.id LEFT JOIN dgg_attachment c ON a.thumb=c.aid  LEFT JOIN dgg_attachment d ON b.thumb=d.aid  where a.catid=$cat_id and a.status=99 order by a.id DESC" num="200" dbsource="zhichanpc" }
        {loop $data $r}
        <a href="{$r['url']}" class="list_item">
          <img src="{if !empty($r[thumb]) } {$home.$r[thumb]} {/if}" alt="" class="case_img" />
          <div class="case_title">{$r['title']}</div>
          <div class="case_info">
            <img src="{if !empty($r[portrait]) } {$home.$r[portrait]} {/if}" alt="" class="case_author_avator" />
            <div class="case_info_right">
              <div class="case_author_name">{$r['name']}</div>
              <div class="case_author_tag">
                {php $tags=explode(',',$r['tags']);}
                {loop $tags $index $tag}
                {if $index<2}
                <div class="tag_item">{$tag}</div>
                {/if}
                {/loop}
              </div>
            </div>
          </div>
        </a>
        {/loop}
        {/pc}
      </section>
    </div>
  </body>
</html>
